<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/yw/leaveflow/";  //应用的地址名
String dealActionName = basePath+"OaLeaveDeal_performTask.action";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
<title></title>
<script type="text/javascript">
<!--
           $(function(){
               $('#comment').validatebox({
                   required:'true',
                   missingMessage:'请填写审批意见',
                   validType:'length[1,200]'
                   
               });
               $('#submitAppBtn').remove();
	           
			   $('#passAppBtn').click(function(){
				  $('#transition').val("true");
                  $('#editForm').submit();
	            });
			   
			   $('#backAppBtn').click(function(){
				  $('#transition').val("false");
                  $('#editForm').submit();
	            });
	            //表单验证及提交处理操作
	           $('#editForm').form({
			        url:'<%=dealActionName%>',
			        onSubmit: function(){
			           if($(this).form('validate')){
			                 $.util.showLoading();
			                 $('#operateWindow').window('close');
                            return true;
			             }else{
			                return false;
			             }
			        },
			        success:function(data){
			            $.util.removeLoading();
                        returnOptMsg(data);
			        }
				});
	            
           });
//-->
</script>
  </head>
  
  <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
    <s:form action="editForm" method="post">
    <input type="hidden" name="po.vcId" value="<s:property value="vcId"/>"/>
    <s:hidden name="taskId" value="%{#parameters.taskId}"/>
    <s:hidden name="transition" id="transition"/>
	<table align="center" class="tb_add_th" width="100%">
	<tr><th width="35%">申请时间</th><td><s:date name="applyTime" format="yyyy-MM-dd HH:mm"/></td></tr>
	<tr><th width="35%">申请人</th><td><s:property value="userId"/></td></tr>
	<tr><th width="35%">请假时间</th><td><s:date name="startTime" format="yyyy-MM-dd HH:mm"/>至<s:date name="endTime" format="yyyy-MM-dd HH:mm"/></td></tr>
	
	<tr><th>假种</th>
	<td>
	  <s:property value="leaveType"/>
	</td></tr>
	<tr><th>请假事由</th><td><s:textarea id="reason" name="reason" cols="60" rows="5" readonly="true"/></td></tr>
	<tr><th>审批意见</th><td><s:textarea id="comment" name="comment" cols="60" rows="5"/></td></tr>
	<s:iterator value="commentList" id="list">
	    
	</s:iterator>
	
    </table>    
   </s:form>
  </body>
</html>

